#include <iostream>

using std::cout;
using std::endl;

class Point
{
public:
    Point(int ix, int iy)
    : _ix(ix) //在初始化列表中进行初始化
    , _iy(iy)
    {
        cout << "Point(int,int)" << endl;
    }

    void print() 
    {
        cout << "(" << _ix << "," << _iy << ")" << endl;
    }

private:
    int _ix;
    int _iy;
};

int main()
{
    int a = 0;
    a = 1;//赋值语句
    
    Point pt1(1, 2);
    pt1.print();

    return 0;
}

